Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
fix little bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lleans committed Apr 2, 2021
1 parent a2b340c commit ae36660
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
time_now = datetime.now(WIB)

if time_now.strftime('%H') == '05' and time_now.strftime('%M') == '58' and time_now.strftime('%a') != 'Sat' and time_now.strftime('%a') != 'Sun':
temp = script.runscript(values.email, values.password, values.browser())
times = datetime.now(WIB)
if(temp == True):
print("Absen berhasil pada", times.strftime('%c'))
elif(temp == False):
print("Absen gagal, SERVER SEKOLAH KENTANK, mencoba lagi",
times.strftime('%c'))
if script.override(values.email, values.password, values.browser()) == True:
print("Absen berhasil pada " + datetime.now(WIB).strftime('%c'))
else:
print("Server-mu Down " + times.strftime('%c'))
try:
temp = script.runscript(values.email, values.password, values.browser())
times = datetime.now(WIB)
if(temp == True):
print("Absen berhasil pada", times.strftime('%c'))
elif(temp == False):
print("Absen gagal, SERVER SEKOLAH KENTANK, mencoba lagi",
times.strftime('%c'))
if script.override(values.email, values.password, values.browser()) == True:
print("Absen berhasil pada", datetime.now(WIB).strftime('%c'))
except:
print("Server-mu Down", datetime.now(WIB).strftime('%c'))

0 comments on commit ae36660

Please sign in to comment.