Skip to content

Commit

Permalink
add userid to institute analytics table
Browse files Browse the repository at this point in the history
  • Loading branch information
madhavipuliraju committed Feb 22, 2019
1 parent 30f7197 commit 3f5a38d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/backend.org
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,7 @@ class InstituteAnalytics(Entity):

id = db.Column(db.Integer, primary_key=True)
institute_name = db.Column(db.String(128), nullable=False, unique=True)
user_id = db.Column(db.Integer)
total_workshops = db.Column(db.Integer)
total_usage = db.Column(db.Integer)
total_participants_attended = db.Column(db.Integer)
Expand Down Expand Up @@ -1409,7 +1410,8 @@ class InstituteAnalytics(Entity):
'institute_name': self.institute_name,
'total_workshops': self.total_workshops,
'total_usage': self.total_usage,
'total_participants_attended': self.total_participants_attended
'total_participants_attended': self.total_participants_attended,
'user_id': self.user_id
}

#+END_SRC
Expand Down Expand Up @@ -6070,6 +6072,9 @@ institute_analytics = {'entity_class': InstituteAnalytics,
'class': None,
'relationship': 'one'},
{'name': 'total_participants_attended',
'class': None,
'relationship': 'one'},
{'name': 'user_id',
'class': None,
'relationship': 'one'}

Expand Down Expand Up @@ -7040,7 +7045,8 @@ entity_map_types = {
'institute_name': str,
'total_workshops': int,
'total_usage': int,
'total_participants_attended': int
'total_participants_attended': int,
'user_id': int
}
},
'analytics': {
Expand Down

0 comments on commit 3f5a38d

Please sign in to comment.