mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-14 15:47:36 +00:00
bugfix in new wallet
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user