mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 17:56:19 +03:00
Linting
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
This commit is contained in:
parent
0e6f700a13
commit
de6b266817
3 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
# This schema delta will be run after 'stats_separated1.sql' due to lexicographic
|
# This schema delta will be run after 'stats_separated1.sql' due to lexicographic
|
||||||
# ordering. Note that it MUST be so.
|
# ordering. Note that it MUST be so.
|
||||||
from synapse.storage.engines import Sqlite3Engine, PostgresEngine
|
from synapse.storage.engines import PostgresEngine, Sqlite3Engine
|
||||||
|
|
||||||
|
|
||||||
def _run_create_generic(stats_type, cursor, database_engine):
|
def _run_create_generic(stats_type, cursor, database_engine):
|
||||||
|
|
|
@ -76,9 +76,7 @@ class StatsStore(StateDeltasStore):
|
||||||
# we no longer need to perform clean-up, but we will give ourselves
|
# we no longer need to perform clean-up, but we will give ourselves
|
||||||
# the potential to reintroduce it in the future – so documentation
|
# the potential to reintroduce it in the future – so documentation
|
||||||
# will still encourage the use of this no-op handler.
|
# will still encourage the use of this no-op handler.
|
||||||
self.register_noop_background_update(
|
self.register_noop_background_update("populate_stats_cleanup")
|
||||||
"populate_stats_cleanup"
|
|
||||||
)
|
|
||||||
|
|
||||||
def quantise_stats_time(self, ts):
|
def quantise_stats_time(self, ts):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -14,12 +14,14 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from mock import Mock
|
from mock import Mock
|
||||||
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
from synapse import storage
|
from synapse import storage
|
||||||
from synapse.api.constants import EventTypes, Membership
|
from synapse.api.constants import EventTypes, Membership
|
||||||
from synapse.rest import admin
|
from synapse.rest import admin
|
||||||
from synapse.rest.client.v1 import login, room
|
from synapse.rest.client.v1 import login, room
|
||||||
|
|
||||||
from tests import unittest
|
from tests import unittest
|
||||||
|
|
||||||
# The expected number of state events in a fresh public room.
|
# The expected number of state events in a fresh public room.
|
||||||
|
|
Loading…
Reference in a new issue