forked from expo/troggle
bugfix in new wallet
This commit is contained in:
parent
186eb20fb3
commit
f33c6cc057
@ -254,9 +254,11 @@ class Wallet(models.Model):
|
||||
|
||||
|
||||
def get_ticks(self):
|
||||
ticks = {}
|
||||
waldata = self.get_json()
|
||||
if not waldata:
|
||||
return {}
|
||||
ticks["W"] = "black"
|
||||
return ticks
|
||||
ticks = {}
|
||||
|
||||
# Initially, are there any required survex files present ?
|
||||
|
@ -248,8 +248,8 @@ def scanupload(request, path=None):
|
||||
wurl = f"/scanupload/{wallet}".replace('#', ':')
|
||||
wallet = wallet.replace(':','#')
|
||||
dirpath = Path(settings.SCANS_ROOT, year, wallet)
|
||||
contents_path = dirpath / contentsjson
|
||||
walletdata = dirpath / contentsjson
|
||||
#contents_path = dirpath / contentsjson
|
||||
contents_path = Path(settings.DRAWINGS_DATA, "walletjson") / year / wallet / contentsjson
|
||||
|
||||
form = FilesForm()
|
||||
|
||||
|
@ -102,9 +102,12 @@ 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
|
||||
refreshes everything during a ful import, but it should all be up to date as every time
|
||||
wallet data gets saved it should also be copied across and committed.
|
||||
'''
|
||||
# not needed now the drawinsg repo is the master
|
||||
return
|
||||
|
||||
year = wallet.walletname[0:4]
|
||||
destfolder = Path(settings.DRAWINGS_DATA,'walletjson', year, wallet.walletname)
|
||||
destjson = destfolder / contentsjson
|
||||
|
Loading…
Reference in New Issue
Block a user