first commit

This commit is contained in:
Valentijn
2026-03-18 19:49:14 +01:00
commit ca82885fb7
7 changed files with 205 additions and 0 deletions

24
main.py Normal file
View File

@@ -0,0 +1,24 @@
from PMT import PMT
from DB import Database
from dotenv import load_dotenv
import os
def main():
load_dotenv(override=True)
db = Database()
pmt = PMT()
pmt.login()
days_ahead = int(os.environ.get("DAYS_TO_FETCH"))
shifts = pmt.get_shifts(days_ahead)
PMT.print_shifts(shifts)
db.insert_shifts(shifts)
print(f"\nFound {len(shifts)} shifts total.")
if __name__ == "__main__":
main()