Fix qutescheme for new SQL backend.

The qute://history and qute://bookmarks handlers were added during my work, and
had to be adapted to the SQL-based history backend.
This commit is contained in:
Ryan Roden-Corrent 2017-02-15 09:07:07 -05:00
parent 0e650ad719
commit ea9217a61f
2 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ def history_data(start_time): # noqa
Arguments:
reverse -- whether to reverse the history_dict before iterating.
"""
history = objreg.get('web-history').history_dict.values()
history = list(objreg.get('web-history'))
if reverse:
history = reversed(history)

View File

@ -96,7 +96,7 @@ class TestHistoryHandler:
return items
@pytest.fixture
def fake_web_history(self, fake_save_manager, tmpdir):
def fake_web_history(self, fake_save_manager, tmpdir, init_sql):
"""Create a fake web-history and register it into objreg."""
web_history = history.WebHistory(tmpdir.dirname, 'fake-history')
objreg.register('web-history', web_history)