Spaces:
Sleeping
Sleeping
jonathanjordan21
commited on
Commit
•
2ca37d9
1
Parent(s):
4be52fb
Update app.py
Browse files
app.py
CHANGED
@@ -880,7 +880,8 @@ def respond_pkb(
|
|
880 |
bbnkb = 0
|
881 |
|
882 |
if scores[1] > w_avg:
|
883 |
-
d = datetime.now().date()
|
|
|
884 |
if d < 1:
|
885 |
d = 1
|
886 |
# swdkllj = 35000
|
|
|
880 |
bbnkb = 0
|
881 |
|
882 |
if scores[1] > w_avg:
|
883 |
+
d = datetime.now().date() - vehicle["tg_akhir_pkb"].values[0]
|
884 |
+
d = d.days // 365
|
885 |
if d < 1:
|
886 |
d = 1
|
887 |
# swdkllj = 35000
|