Fixed some broken stuff ig #25
2 changed files with 6 additions and 5 deletions
|
@ -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]
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
A service by Cyberia Computer Club 2020-<span class="bigtext">∞</span> <br/>
|
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>
|
||||||
|
|
Loading…
Reference in a new issue