|
|
@@ -91,8 +91,8 @@ def create_or_get_and_update_last_event(self, table, event_type, channel_name=No
|
|
|
chat=False,
|
|
|
)
|
|
|
else:
|
|
|
- fields += ', xp_spent, level, coin, coin_given, coin_spent, ap_spent, karma_correction, no_chat'
|
|
|
- values += ', %(xp_spent)s, %(level)s, %(coin)s, %(coin_given)s, %(coin_spent)s, %(ap_spent)s, %(karma_correction)s, %(no_chat)s'
|
|
|
+ fields += ', xp_spent, level, coin, coin_given, coin_spent, ap_spent, karma_correction, xp_correction, no_chat'
|
|
|
+ values += ', %(xp_spent)s, %(level)s, %(coin)s, %(coin_given)s, %(coin_spent)s, %(ap_spent)s, %(karma_correction)s, %(xp_correction)s, %(no_chat)s'
|
|
|
self.db.run( # Create record.
|
|
|
'INSERT INTO rotbot_' + table + ' (' + fields + ') VALUES (' + values + ')',
|
|
|
name=name,
|
|
|
@@ -110,6 +110,7 @@ def create_or_get_and_update_last_event(self, table, event_type, channel_name=No
|
|
|
coin_spent=0,
|
|
|
ap_spent=0,
|
|
|
karma_correction=0,
|
|
|
+ xp_correction=0,
|
|
|
no_chat=False,
|
|
|
)
|
|
|
record = self.db.one('SELECT * FROM rotbot_' + table + ' WHERE slug=%(slug)s', slug=new_slug) # Lookup newly created record to return to call..
|