mirror of
https://github.com/nikdoof/test-auth.git
synced 2026-01-30 16:08:14 +00:00
Adds forum link to the Optimer feed
This commit is contained in:
@@ -138,7 +138,8 @@ class OpTimerHandler(BaseHandler):
|
|||||||
'duration': 0,
|
'duration': 0,
|
||||||
'isImportant': 0,
|
'isImportant': 0,
|
||||||
'eventText': 'Fuck CCP tbqh imho srsly',
|
'eventText': 'Fuck CCP tbqh imho srsly',
|
||||||
'endsIn':-1
|
'endsIn':-1,
|
||||||
|
'forumLink': ''
|
||||||
}]}
|
}]}
|
||||||
|
|
||||||
events = []
|
events = []
|
||||||
@@ -169,7 +170,8 @@ class OpTimerHandler(BaseHandler):
|
|||||||
'duration': duration,
|
'duration': duration,
|
||||||
'isImportant': node.getAttribute('importance'),
|
'isImportant': node.getAttribute('importance'),
|
||||||
'eventText': node.getAttribute('eventText'),
|
'eventText': node.getAttribute('eventText'),
|
||||||
'endsIn':endsIn
|
'endsIn':endsIn,
|
||||||
|
'forumLink': 'http://forum.pleaseignore.com/index.php?%s' % re.search('topic=[\d]+', node.getAttribute('eventText'))
|
||||||
}
|
}
|
||||||
events.append(event)
|
events.append(event)
|
||||||
if len(events) == 0:
|
if len(events) == 0:
|
||||||
@@ -182,7 +184,8 @@ class OpTimerHandler(BaseHandler):
|
|||||||
'duration': 0,
|
'duration': 0,
|
||||||
'isImportant': 0,
|
'isImportant': 0,
|
||||||
'eventText': 'Add ops using EVE-Gate or the in-game calendar',
|
'eventText': 'Add ops using EVE-Gate or the in-game calendar',
|
||||||
'endsIn':-1
|
'endsIn':-1,
|
||||||
|
'forumLink': ''
|
||||||
}]}
|
}]}
|
||||||
else:
|
else:
|
||||||
return {'ops':events}
|
return {'ops':events}
|
||||||
|
|||||||
Reference in New Issue
Block a user