-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset_classdata.py
More file actions
27 lines (25 loc) · 858 Bytes
/
Copy pathset_classdata.py
File metadata and controls
27 lines (25 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'''
set_classdata
-------------
A tool to set my data of online class for next day, so that I can fill my daily report with one click :p
(Prepares data for Reporter)
'''
import os
from datetime import datetime
where = os.path.dirname(os.path.realpath(__file__))
when = input('Date? ')
with open(where+'\\data\\daily\\'+when+'.txt','w') as f:
while True:
data = ['']*6
data[0] = input('Period? ')
data[1] = input('Chapter Number? ')
data[2] = input('Recaptulation? ')
data[3] = input('Homework? ')
data[4] = input('Summary? ')
data[5] = input('Shared video [y/n]? ')
line = ''
for d in data: line += d + '\\'
f.write(line[:-1]+'\n')
another = input('Another class? ')
if another=='Y' or another=='y': continue
else: break