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 [1]:
rdminz = ('/home/wcmckee/signinlca/usernames/')

In [2]:
rdminz


Out[2]:
'/home/wcmckee/signinlca/usernames/'

In [3]:
import os

In [11]:
usrdir = os.listdir(rdminz)

In [5]:
#Make folders of usersnames from /home in /signinlca/usernames
#make username-time etc files

In [7]:
holis = os.listdir('/home')

In [15]:
for hol in holis:
    #print hol
    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.


tnow
its not correct :(!
tnow
its not correct :(!
sjohns
its not correct :(!
sjohns
its not correct :(!
signinlca.py
its not correct :(!
signinlca.py
its not correct :(!
charle
its not correct :(!
charle
its not correct :(!
wcm
its not correct :(!
wcm
its not correct :(!
wmen
its not correct :(!
wmen
its not correct :(!
webmck
its not correct :(!
webmck
its not correct :(!
pjohns
its not correct :(!
pjohns
its not correct :(!
red
its not correct :(!
red
its not correct :(!
wez
its not correct :(!
wez
its not correct :(!
checkthis
its not correct :(!
checkthis
its not correct :(!
blah
its not correct :(!
blah
its not correct :(!
joeman
its not correct :(!
joeman
its not correct :(!
wkee
its not correct :(!
wkee
its not correct :(!
jchick
its not correct :(!
jchick
its not correct :(!
wcmckee
its not correct :(!
wcmckee
its not correct :(!
wblack
its not correct :(!
wblack
its not correct :(!
joemanz
its not correct :(!
joemanz
its not correct :(!
poiu
its not correct :(!
poiu
its not correct :(!
poi
its not correct :(!
poi
its not correct :(!
qwe
its not correct :(!
qwe
its not correct :(!
point
its not correct :(!
point
its not correct :(!
pytest
its not correct :(!
pytest
its not correct :(!
figlet
its not correct :(!
figlet
its not correct :(!
blag
its not correct :(!
blag
its not correct :(!
gerty
its not correct :(!
gerty
its not correct :(!
jblog
its not correct :(!
jblog
its not correct :(!
ssung
its not correct :(!
ssung
its not correct :(!
clittle
its not correct :(!
clittle
its not correct :(!
joecheck
its not correct :(!
joecheck
its not correct :(!

In [ ]: