electora-vote / electora-app

Decentralized Voting Application - leveraging the power of zk-proofs, conditions based decryption, and decentralized storage
https://app.electora.eu/
8 stars 2 forks source link

Prevent users from submitting votes after the endtime and add status indicator to ballot page #104

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR addresses the following issues:

Changes Made

Testing

Screenshots

Checklist

Fixes #92.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep_prevent-votes-after-endtime

🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

sweep-ai[bot] commented 1 year ago

GitHub actions yielded the following error.

The command that failed is ruff --format=github .. Here are the relevant lines from the logs:

##[error]client_code/forms/routes/vote/Cast/__init__.py:26:13: F821 Undefined name `anvil`
##[error]Process completed with exit code 1.

This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests.

I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR.

what-the-diff[bot] commented 1 year ago

PR Summary

sweep-ai[bot] commented 1 year ago

GitHub actions yielded the following error.

The command that failed is ruff --format=github .. Here are the relevant lines from the logs:

##[error]client_code/forms/routes/vote/Cast/__init__.py:26:13: F821 Undefined name `anvil`
##[error]Process completed with exit code 1.

This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests.

sweep-ai[bot] commented 1 year ago

🚀 Wrote Changes

The command that failed is ruff --format=github .. Here are the relevant lines from the logs:

##[error]client_code/forms/routes/vote/Cast/__init__.py:26:13: F821 Undefined name `anvil`
##[error]Process completed with exit code 1.

Hi @sweep-ai[bot],

I decided to make the following changes:

File Path Proposed Changes
client_code/forms/routes/vote/Cast/__init__.py Modify client_code/forms/routes/vote/Cast/init.py with contents:
• At the beginning of the file, add the line import anvil to import the anvil module.