Affect Account
Script that causes affects to users when the minutes folder reaches a certain amount.
Read minutes folder. If user has less than 10 mins warn them. At 5 mins warn every 5 mins. 10 seconds count down. Suggest they buy more time.
In [6]:
rdminz = ('/home/wcmckee/signinlca/usernames/')
In [7]:
rdminz
Out[7]:
In [8]:
import os
In [9]:
usrdir = os.listdir(rdminz)
In [10]:
#Make folders of usersnames from /home in /signinlca/usernames
#make username-time etc files
In [11]:
minz = ('/home/wcmckee/sellcoffee/usernames/')
In [12]:
os.listdir(minz)
Out[12]:
In [18]:
thrlis = []
In [ ]:
In [13]:
holis = os.listdir('/home')
In [20]:
for hol in holis:
#print hol
#print hol.upper()
hthr = hol.replace('b', '3')
print hthr
thrlis.append(hthr)
#for usrd in usrdir:
# if hol == usrd:
#print('its correct!')
# print hol
# else:
# print hol
# print('its not correct :(!')
#compare two lists - home and usernames. if home item isnt in
#username item - add it make folder/files etc.
In [21]:
thrlis
Out[21]:
In [ ]:
In [16]:
hthr
Out[16]:
In [ ]:
In [14]:
In [ ]: