mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 06:17:07 +00:00
Fixed coloured T and S on expo calendar
This commit is contained in:
@@ -11,6 +11,7 @@ from django.conf import settings
|
||||
from django.db import models
|
||||
from django.urls import reverse
|
||||
|
||||
#from troggle.core.models.survex import SurvexBlock
|
||||
# from troggle.core.models.troggle import DataIssue # circular import. Hmm
|
||||
|
||||
class Wallet(models.Model):
|
||||
@@ -164,7 +165,8 @@ class Wallet(models.Model):
|
||||
return files
|
||||
|
||||
def fixsurvextick(self, tick):
|
||||
blocks = SurvexBlock.objects.filter(scanswallet = self)
|
||||
blocks = self.survexblock_set.all()
|
||||
#blocks = SurvexBlock.objects.filter(scanswallet = self)
|
||||
result = tick
|
||||
for b in blocks:
|
||||
if b.survexfile: # if any exist in db, no check for validity or a real file. Refactor.
|
||||
|
||||
Reference in New Issue
Block a user