-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
556 additions
and
1,947 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.10-slim | ||
FROM python:3.11-alpine | ||
|
||
WORKDIR /opt | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Django==4.1.13 | ||
djangorestframework==3.14.0 | ||
face_recognition==1.3.0 | ||
scikit-learn==1.1.3 | ||
mkdocs-material==8.5.9 | ||
django-bootstrap5==23.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,39 @@ | ||
-- auto-generated definition | ||
create function checkinout() returns trigger | ||
language plpgsql | ||
language plpgsql | ||
as $$ | ||
BEGIN | ||
IF new.inout IS NOT NULL | ||
IF | ||
new.inout IS NOT NULL | ||
THEN | ||
RETURN NULL; | ||
END IF; | ||
IF (SELECT COUNT(*) | ||
FROM tracker_attendance | ||
WHERE user_id = new.user_id AND date :: DATE = now() :: DATE) = 0 | ||
END IF; | ||
IF | ||
( | ||
SELECT COUNT(*) | ||
FROM tracker_attendance | ||
WHERE user_id = new.user_id | ||
AND date :: DATE = now() :: DATE) = 0 | ||
THEN | ||
new.inout := TRUE; | ||
ELSEIF (SELECT DISTINCT ON (date) inout | ||
FROM tracker_attendance | ||
WHERE user_id = new.user_id | ||
ORDER BY date DESC) | ||
ELSEIF | ||
( | ||
SELECT DISTINCT | ||
ON (date) inout | ||
FROM tracker_attendance | ||
WHERE user_id = new.user_id | ||
ORDER BY date DESC) | ||
THEN | ||
new.inout := FALSE; | ||
ELSE | ||
new.inout := FALSE; | ||
ELSE | ||
new.inout := TRUE; | ||
END IF; | ||
RETURN NULL; | ||
END IF; | ||
RETURN NULL; | ||
END | ||
$$ | ||
; | ||
$$; | ||
|
||
create trigger checkinouttrigger | ||
before insert | ||
on tracker_attendance | ||
for each row | ||
execute procedure checkinout() | ||
; | ||
before insert | ||
on tracker_attendance | ||
for each row | ||
execute procedure checkinout(); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.