From 4f5bb3776ca44fe347551013c5ca5dd48cd918e5 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Thu, 18 Feb 2021 05:51:53 -0500 Subject: [PATCH] fix sql err --- tests/test_remove.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_remove.py b/tests/test_remove.py index 024518c9..2ae23c11 100644 --- a/tests/test_remove.py +++ b/tests/test_remove.py @@ -100,7 +100,7 @@ def test_remove_before(tmp_path, process, disable_extractors_dict): conn = sqlite3.connect("index.sqlite3") c = conn.cursor() - timestamp = c.execute("SELECT timestamp FROM core_snapshot ORDER BY timestamp DSC").fetchall() + timestamp = c.execute("SELECT timestamp FROM core_snapshot ORDER BY timestamp DESC").fetchall() conn.commit() conn.close() @@ -118,7 +118,7 @@ def test_remove_after(tmp_path, process, disable_extractors_dict): conn = sqlite3.connect("index.sqlite3") c = conn.cursor() - timestamp = c.execute("SELECT timestamp FROM core_snapshot ORDER BY timestamp DSC").fetchall() + timestamp = c.execute("SELECT timestamp FROM core_snapshot ORDER BY timestamp DESC").fetchall() conn.commit() conn.close()