We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7054d3 commit d44fe04Copy full SHA for d44fe04
1 file changed
enter/views.py
@@ -17,7 +17,7 @@
17
def library(request):
18
# Get the current date and yesterday's date
19
today = date.today()
20
- yesterday = datetime.now().date() - timedelta(days=1)
+ yesterday = datetime.now().date() - timedelta(days=2)
21
22
# Update entries with status 'IN' and date before or equal to yesterday
23
record.objects.filter(status='IN', date__lte=yesterday, exittime__isnull=True).update(exittime='23:30:00', status='OUT')
0 commit comments