1
0
mirror of https://github.com/quay/quay.git synced 2025-04-18 10:44:06 +03:00
quay/util/parsing.py
Jake Moshenko 7f56b221e8
Gen migrations (#240)
* Move truthy_bool to a neutral location.

* Add dba operator migration version generation code.
Change existing migrations to use an injected and wrapped op.

* Generate databasemigration hints files for all existing migrations.

* Reformat with black.
2020-03-11 13:54:08 -04:00

3 lines
100 B
Python

def truthy_bool(param):
return param not in {False, "false", "False", "0", "FALSE", "", "null"}