Fixed some broken stuff ig #25

Merged
j3s merged 2 commits from maveth/capsul-flask:main into main 2021-11-23 20:18:16 +00:00
2 changed files with 6 additions and 5 deletions

View file

@ -36,10 +36,11 @@ def validate_dollars():
dollars = decimal.Decimal(request.form["dollars"]) dollars = decimal.Decimal(request.form["dollars"])
except: except:
errors.append("dollars must be a number") errors.append("dollars must be a number")
# TODO re enable this if dollars and dollars < decimal.Decimal(1):
# if dollars and dollars < decimal.Decimal(1): errors.append("dollars must be >= 1")
# errors.append("dollars must be >= 1") elif dollars and dollars >= decimal.Decimal(1000000):
errors.append("dollars must be < 1,000,000")
return [errors, dollars] return [errors, dollars]

View file

@ -51,7 +51,7 @@
&nbsp;&nbsp;&nbsp;&nbsp;A service by Cyberia Computer Club 2020-<span class="bigtext"></span> <br/> &nbsp;&nbsp;&nbsp;&nbsp;A service by Cyberia Computer Club 2020-<span class="bigtext"></span> <br/>
<br/> <br/>
<br/> <br/>
<a href="https://giit.cyberia.club/~forest/capsul-flask/tree/master/capsulflask{% block pagesource %}{% endblock %}">View page source</a> <a href="https://git.cyberia.club/cyberia/capsul-flask/src/branch/main/capsulflask{% block pagesource %}{% endblock %}">View page source</a>
</footer> </footer>
</body> </body>
</html> </html>