Skip to content

Commit

Permalink
work-in-progress campaign report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud committed Oct 30, 2016
1 parent f36f12a commit e510955
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 18 additions & 0 deletions _test_campaign_report.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

from montage.rdb import *
from montage.rdb import make_rdb_session, CoordinatorDAO, User

def main():
rdb_session = make_rdb_session(echo=False)

user = rdb_session.query(User).first()
cdao = CoordinatorDAO(rdb_session=rdb_session, user=user)
campaign = cdao.get_campaign(1)

ctx = cdao.get_campaign_report(campaign)

import pdb;pdb.set_trace()


if __name__ == '__main__':
main()
1 change: 0 additions & 1 deletion montage/admin_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ def download_results_csv(rdb_session, user, round_id, request_dict):
if not user.is_maintainer and rnd.status != 'finalized':
raise DoesNotExist('round results not yet finalized')


results_by_name = make_vote_table(user_dao, rnd)

output = io.BytesIO()
Expand Down

0 comments on commit e510955

Please sign in to comment.