Skip to content

Commit

Permalink
Fix imported item counts
Browse files Browse the repository at this point in the history
Imported items are counted by files rather than database objects. Corrected the displayed output while building from source.
  • Loading branch information
joyfullservice committed Nov 7, 2020
1 parent 1526539 commit 2ec44ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Version Control.accda.src/dbs-properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Info": {
"Class": "clsDbProperty",
"Description": "Database Properties (DAO)",
"VCS Version": "3.1.77"
"VCS Version": "3.2.0"
},
"Items": {
"AccessVersion": {
Expand Down Expand Up @@ -42,7 +42,7 @@
"Type": 10
},
"AppVersion": {
"Value": "3.2.0",
"Value": "3.2.1",
"Type": 10
},
"Auto Compact": {
Expand Down
6 changes: 4 additions & 2 deletions Version Control.accda.src/modules/modImportExport.bas
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Public Sub ExportSource()
' Show category header and clear out any orphaned files.
Log.Spacer Options.ShowDebug
Log.PadRight "Exporting " & cCategory.Category & "...", , Options.ShowDebug
Log.ProgMax = cCategory.Count
Perf.ComponentStart cCategory.Category

' Loop through each object in this category.
Expand Down Expand Up @@ -261,6 +262,7 @@ Public Sub Build(strSourceFolder As String)
' Show category header
Log.Spacer Options.ShowDebug
Log.PadRight "Importing " & cCategory.Category & "...", , Options.ShowDebug
Log.ProgMax = colFiles.Count
Perf.ComponentStart cCategory.Category

' Loop through each file in this category.
Expand All @@ -272,9 +274,9 @@ Public Sub Build(strSourceFolder As String)
Next varFile

' Show category wrap-up.
Log.Add "[" & cCategory.Count & "]" & IIf(Options.ShowDebug, " " & cCategory.Category & " processed.", vbNullString)
Log.Add "[" & colFiles.Count & "]" & IIf(Options.ShowDebug, " " & cCategory.Category & " processed.", vbNullString)
'Log.Flush ' Gives smoother output, but slows down the import.
Perf.ComponentEnd cCategory.Count
Perf.ComponentEnd colFiles.Count
End If
Next cCategory

Expand Down
2 changes: 1 addition & 1 deletion Version Control.accda.src/vcs-options.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Info": {
"AddinVersion": "3.2.0",
"AddinVersion": "3.2.1",
"AccessVersion": "14.0 32-bit"
},
"Options": {
Expand Down

0 comments on commit 2ec44ff

Please sign in to comment.