RadicalxChange / rxc-voice

An app for decentralized democratic governance.
https://voice.radicalxchange.org/
Other
42 stars 14 forks source link

Auto-generate Polis reports #95

Closed alexrandaccio closed 2 years ago

alexrandaccio commented 2 years ago

closes #86

@DecimalTurn all you need to do is edit backend/RxcVoiceApi/main/utils.py:

  1. fill in the generate_report() function (line 29)
  2. uncomment lines 15-18 (see below)
    15     if curr_stage.type == Stage.CONVERSATION:
    16         response = generate_report(os.environ.get('POLIS_ADMIN_EMAIL'),os.environ.get('POLIS_ADMIN_PASSWORD'),curr_stage.polis_id)
    17         curr_stage.report_id = response.json()[0]['report_id']
    18         curr_stage.save()
DecimalTurn commented 2 years ago

I don't seem to have the permission to add my changes directly in the polis-reports branch, so I've made another PR that would edit this branch before we can merge to development. https://github.com/RadicalxChange/rxc-voice/pull/96

alexrandaccio commented 2 years ago

@DecimalTurn sorry about that, I just gave you write access

alexrandaccio commented 2 years ago

RxC Voice's first ever collaborative bug-fixing PR!! Congrats @DecimalTurn and thank you !!! 🍾 🥇 💯