aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/migrations/tables/code_jams/v2.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-08-07 15:09:08 +0100
committerGravatar Gareth Coles <[email protected]>2018-08-07 15:09:16 +0100
commitaf54db6c136138c66cf5ca72419989525a0baa5c (patch)
tree8519aeab8d45277c51797c7dc23aacf3b56ed1bb /pysite/migrations/tables/code_jams/v2.py
parentA wizard is never late, nor is he early. (diff)
Initial project layout for django
Diffstat (limited to 'pysite/migrations/tables/code_jams/v2.py')
-rw-r--r--pysite/migrations/tables/code_jams/v2.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/pysite/migrations/tables/code_jams/v2.py b/pysite/migrations/tables/code_jams/v2.py
deleted file mode 100644
index df4752c8..00000000
--- a/pysite/migrations/tables/code_jams/v2.py
+++ /dev/null
@@ -1,10 +0,0 @@
-def run(db, table, table_obj):
- """
- Clean list of teams from teams that do not exist anymore.
- """
- for document in db.get_all(table):
- for team_id in document["teams"]:
- if db.get("code_jam_teams", team_id) is None:
- document["teams"].remove(team_id)
- db.insert(table, document, conflict="update", durability="soft")
- db.sync(table)