Commit c1e6ac357b6886253c8e951fff6147cd71319242

Authored by soochanlee ago
1 parent c3c0060539
Exists in master

fixing bug

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

project/project/controller/printer.py View file @ c1e6ac3
... ... @@ -32,7 +32,7 @@
32 32  
33 33 def get_dateSub():
34 34 sub = int(get_date(0)) - session['fail_date']
35   - return sub * 60
  35 + return sub
36 36  
37 37 def is_login():
38 38 if session.has_key('is_login') == False or session['is_login'] == False:
... ... @@ -87,7 +87,7 @@
87 87  
88 88 if session['fail_cnt'] > 4:
89 89  
90   - if get_dateSub() > 10:
  90 + if get_dateSub() > 10 * 60:
91 91 session['fail_cnt'] = 0
92 92 session['fail_date'] = 0
93 93 else: