creating new wallet now copies nd commits

This commit is contained in:
Philip Sargent
2022-07-28 18:36:40 +03:00
parent 93622b111f
commit c29e240c2b
2 changed files with 28 additions and 10 deletions

View File

@@ -80,6 +80,8 @@ def LoadListScansFile(wallet):
c = 0
def CopyWalletData(wallet):
'''Copies all the contents.json to a parallel set of folders in the drawings repo
refreshes everything during a ful import, but it shoudl all be up to date as every time
wallet data gets saved it should also be copied across and committed.
'''
year = wallet.walletname[0:4]
destfolder = Path(settings.DRAWINGS_DATA,'walletjson', year, wallet.walletname)