Improve print
This commit is contained in:
parent
fbcf1a8dee
commit
c6003e5ef9
@ -29,12 +29,13 @@ def notify(message):
|
|||||||
requests.post(api_url, json={"title": "Monitor Planning", "message": message})
|
requests.post(api_url, json={"title": "Monitor Planning", "message": message})
|
||||||
|
|
||||||
def update_other_applications():
|
def update_other_applications():
|
||||||
|
print("Scrape Weekly List(s)")
|
||||||
|
|
||||||
there_were_newly_decided_applications = False
|
there_were_newly_decided_applications = False
|
||||||
with sqlite3.connect("./database.db") as _conn:
|
with sqlite3.connect("./database.db") as _conn:
|
||||||
_cursor = _conn.cursor()
|
_cursor = _conn.cursor()
|
||||||
|
|
||||||
with webdriver.Chrome(options=web_opts) as _browser:
|
with webdriver.Chrome(options=web_opts) as _browser:
|
||||||
print("Scrape Weekly List(s)")
|
|
||||||
weekly_list = WeeklyList(_cursor)
|
weekly_list = WeeklyList(_cursor)
|
||||||
|
|
||||||
for search_week_idx in range(search_past_week,
|
for search_week_idx in range(search_past_week,
|
||||||
@ -67,7 +68,7 @@ def update_other_applications():
|
|||||||
return there_were_newly_decided_applications
|
return there_were_newly_decided_applications
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
notify(f"Script Restarted")
|
notify(f"Script Started")
|
||||||
try:
|
try:
|
||||||
with sqlite3.connect("./database.db") as connection:
|
with sqlite3.connect("./database.db") as connection:
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user