sdf
parent
bb43be278b
commit
c5f5342373
|
@ -188,7 +188,11 @@ class User(Base):
|
|||
if time.time() - self.created_utc > 363 * 86400:
|
||||
date = time.strftime("%d %b", time.gmtime(self.created_utc))
|
||||
now = time.strftime("%d %b", time.gmtime())
|
||||
if date == now: return True
|
||||
if date == now:
|
||||
if not self.has_badge(134):
|
||||
new_badge = Badge(badge_id=134, user_id=self.id)
|
||||
g.db.add(new_badge)
|
||||
return True
|
||||
return False
|
||||
|
||||
@property
|
||||
|
|
|
@ -91,4 +91,4 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/assets/js/emoji_modal.js?v=272"></script>
|
||||
<script src="/assets/js/emoji_modal.js?v=273"></script>
|
Loading…
Reference in New Issue