mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-09-28 19:17:51 +00:00
jobs: simplify reset
Also ups test coverage
This commit is contained in:
parent
b6eeec23cc
commit
106a083ca2
|
@ -67,10 +67,9 @@ class Jobs:
|
||||||
"""
|
"""
|
||||||
Reset the jobs list.
|
Reset the jobs list.
|
||||||
"""
|
"""
|
||||||
r = RedisPool().get_connection()
|
|
||||||
jobs = Jobs.get_jobs()
|
jobs = Jobs.get_jobs()
|
||||||
for job in jobs:
|
for job in jobs:
|
||||||
r.delete(redis_key_from_uuid(job.uid))
|
Jobs.remove(job)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def add(
|
def add(
|
||||||
|
|
Loading…
Reference in a new issue