mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
minor tweaks
This commit is contained in:
parent
156c41a5c5
commit
890bd313bd
2 changed files with 12 additions and 9 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import os
|
||||
import re
|
||||
import time
|
||||
|
||||
# import time
|
||||
from typing import Any, Dict, List, Mapping
|
||||
|
||||
from openpyxl import load_workbook
|
||||
|
|
@ -49,12 +50,6 @@ def extract_jobs(filepath: str) -> List[Job]:
|
|||
job_id = match.group(1)
|
||||
|
||||
jobs.append({"id": job_id, "address": str(name)})
|
||||
if not match:
|
||||
continue
|
||||
|
||||
job_id = match.group(1)
|
||||
|
||||
jobs.append({"id": job_id, "address": str(name)})
|
||||
|
||||
return jobs
|
||||
|
||||
|
|
@ -113,6 +108,12 @@ def handler(event: Mapping[str, Any], context: Any) -> None:
|
|||
pashub_client.get_core_evidence_files_by_job_id(job["id"])
|
||||
)
|
||||
|
||||
time.sleep(10) # Simulate manual download
|
||||
# time.sleep(10) # Simulate manual download
|
||||
|
||||
print(f"saved {len(saved_file_paths)} files")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
event = {"Records": [{"body": "{}"}]}
|
||||
|
||||
handler(event, None)
|
||||
|
|
|
|||
|
|
@ -24,7 +24,9 @@ def get_token_from_local_storage(email: str, password: str) -> str:
|
|||
page.fill("#password", password)
|
||||
|
||||
logger.info("Submitting login...")
|
||||
page.click("#btn-login")
|
||||
page.wait_for_selector("#btn-login", state="visible", timeout=10000)
|
||||
with page.expect_navigation(timeout=15000):
|
||||
page.click("#btn-login")
|
||||
|
||||
page.wait_for_timeout(3000)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue