Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
b75671cc
authored
Mar 20, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: removed timedelta from is_deletable
parent
67324baa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
circle/storage/models.py
+1
-4
No files found.
circle/storage/models.py
View file @
b75671cc
...
...
@@ -11,7 +11,6 @@ from django.utils import timezone
from
django.utils.translation
import
ugettext_lazy
as
_
from
model_utils.models
import
TimeStampedModel
from
sizefield.models
import
FileSizeField
from
datetime
import
timedelta
from
acl.models
import
AclBase
from
.tasks
import
local_tasks
,
remote_tasks
...
...
@@ -173,9 +172,7 @@ class Disk(AclBase, TimeStampedModel):
"""True if the associated file can be deleted.
"""
# Check if all children and the disk itself is destroyed.
yesterday
=
timezone
.
now
()
-
timedelta
(
days
=
1
)
return
(
self
.
destroyed
is
not
None
and
self
.
destroyed
<
yesterday
)
and
self
.
children_deletable
return
(
self
.
destroyed
is
not
None
)
and
self
.
children_deletable
@property
def
children_deletable
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment