diff options
author | Rob Austein <sra@hactrn.net> | 2007-10-05 23:23:24 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-10-05 23:23:24 +0000 |
commit | e8aed589d763880e3d5e83555a04d892fab9da35 (patch) | |
tree | ea0aeb6fb26057fb2a62719e4c69182012c2ef58 /scripts/rpki/sql.py | |
parent | 0adb6d413488c9b8930f03ec63b95327d42b9c59 (diff) |
Start on "regular poll" code
svn path=/scripts/rpki/left_right.py; revision=1101
Diffstat (limited to 'scripts/rpki/sql.py')
-rw-r--r-- | scripts/rpki/sql.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rpki/sql.py b/scripts/rpki/sql.py index d8f6629a..edbc9331 100644 --- a/scripts/rpki/sql.py +++ b/scripts/rpki/sql.py @@ -41,10 +41,10 @@ def sql_assert_pristine(): """Assert that there are no dirty objects in the cache.""" assert not sql_dirty, "Dirty objects in SQL cache: %s" % sql_dirty -def sql_sweep(db, cur): +def sql_sweep(gctx): """Write any dirty objects out to SQL.""" for s in sql_dirty: - s.sql_store(db, cur) + s.sql_store(gctx) def fetch_column(gctx, *query): """Pull a single column from SQL, return it as a list.""" |