Compare commits
2 Commits
improve-do
...
7e4d2fa29b
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e4d2fa29b | |||
| d14d9eba4c |
@@ -25,7 +25,7 @@ spec:
|
||||
mountPath: /data
|
||||
containers:
|
||||
- name: web
|
||||
image: git.baumann.gr/adebaumann/vui:0.939
|
||||
image: git.baumann.gr/adebaumann/vui:0.940
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
|
||||
@@ -78,7 +78,7 @@ class Vorgabe(models.Model):
|
||||
if not self.gueltigkeit_bis:
|
||||
return "active"
|
||||
|
||||
if self.gueltigkeit_bis > check_date:
|
||||
if self.gueltigkeit_bis >= check_date:
|
||||
return "active"
|
||||
|
||||
return "expired" if not verbose else "Ist seit dem "+self.gueltigkeit_bis.strftime('%d.%m.%Y')+" nicht mehr in Kraft."
|
||||
|
||||
Reference in New Issue
Block a user