mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-03-18 12:34:49 +00:00
chore: bump version
This commit is contained in:
parent
e6189e4e73
commit
ff70a3588e
3 changed files with 5 additions and 5 deletions
|
@ -27,4 +27,4 @@ async def get_token_header(
|
||||||
|
|
||||||
def get_api_version() -> str:
|
def get_api_version() -> str:
|
||||||
"""Get API version"""
|
"""Get API version"""
|
||||||
return "2.2.1"
|
return "2.3.0"
|
||||||
|
|
|
@ -159,8 +159,8 @@ class BackupMutations:
|
||||||
|
|
||||||
@strawberry.mutation(permission_classes=[IsAuthenticated])
|
@strawberry.mutation(permission_classes=[IsAuthenticated])
|
||||||
def forget_snapshot(self, snapshot_id: str) -> GenericMutationReturn:
|
def forget_snapshot(self, snapshot_id: str) -> GenericMutationReturn:
|
||||||
"""Forget a snapshot.
|
"""Forget a snapshot.
|
||||||
Makes it inaccessible from the server.
|
Makes it inaccessible from the server.
|
||||||
After some time, the data (encrypted) will not be recoverable
|
After some time, the data (encrypted) will not be recoverable
|
||||||
from the backup server too, but not immediately"""
|
from the backup server too, but not immediately"""
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ class BackupMutations:
|
||||||
code=404,
|
code=404,
|
||||||
message=f"snapshot {snapshot_id} not found",
|
message=f"snapshot {snapshot_id} not found",
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
Backups.forget_snapshot(snap)
|
Backups.forget_snapshot(snap)
|
||||||
return GenericMutationReturn(
|
return GenericMutationReturn(
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="selfprivacy_api",
|
name="selfprivacy_api",
|
||||||
version="2.2.1",
|
version="2.3.0",
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
scripts=[
|
scripts=[
|
||||||
"selfprivacy_api/app.py",
|
"selfprivacy_api/app.py",
|
||||||
|
|
Loading…
Add table
Reference in a new issue