You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app.py
+11-12Lines changed: 11 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -856,16 +856,12 @@ def today(self):
856
856
returnres
857
857
858
858
defappointed(self):
859
-
list=SaleInstallment.raw("SELECT * ,datediff(date,curdate()) as 'deadline' FROM `saleinstallment` WHERE (dateback is null) having deadline < 5 order by deadline asc")
860
-
count=0
861
-
forliinlist:
862
-
count+=1
863
-
# try:
864
-
# list = SaleInstallment.raw("SELECT * ,datediff(date,curdate()) as 'deadline' FROM `saleinstallment` WHERE (dateback is null) having deadline < 1000 order by deadline asc")
@@ -1070,12 +1066,15 @@ class Dashboard(Template):
1070
1066
defProcess(self,section):
1071
1067
1072
1068
ifsection=='instulments':
1073
-
insts=SaleInstallment.raw("SELECT * ,datediff(date,curdate()) as 'deadline' FROM `saleinstallment` WHERE (dateback is null) having deadline < 5 order by deadline asc")
0 commit comments