-
Notifications
You must be signed in to change notification settings - Fork 0
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
9 changed files
with
79 additions
and
40 deletions.
There are no files selected for viewing
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,22 +1,26 @@ | ||
import os | ||
import json | ||
|
||
|
||
def parse_timestamps(time_stamp_test): | ||
time_stamps = [i for i in time_stamp_test] | ||
return time_stamps | ||
|
||
|
||
def time_stamp_return(day): | ||
schedule = [] | ||
if os.path.isfile('schedule.txt'): | ||
with open('schedule.txt', 'r') as f: | ||
tempApps = f.read() | ||
converted = json.loads(tempApps) | ||
parse_timestamps(converted[day].keys()) | ||
return parse_timestamps(converted[day].keys()) | ||
if os.path.isfile("schedule.txt"): | ||
with open("schedule.txt", "r") as f: | ||
tempApps = f.read() | ||
converted = json.loads(tempApps) | ||
parse_timestamps(converted[day].keys()) | ||
return parse_timestamps(converted[day].keys()) | ||
|
||
|
||
def main(): | ||
day = input("Which day do you want to know about? : ") | ||
print(time_stamp_return(day)) | ||
|
||
if __name__ == '__main__': | ||
main() | ||
|
||
if __name__ == "__main__": | ||
main() |
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 |
---|---|---|
|
@@ -6,4 +6,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
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
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
root = Tk() | ||
root.title("It's the Time Tabler.") | ||
|
||
root.mainloop() | ||
root.mainloop() |
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