twenty-server 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 586b411b7901b68e979b8640282eea96470b4433481d1785bff14cdf3bddcc78
|
4
|
+
data.tar.gz: c8b7b7e848bc6525f62d2512757066cca27bdc7dbb0dd055961738b18c84a256
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ca0d2eca6285ff6c9d7972be1d4a2c0a0c57dbf5edca4d8d07055a49617b12b5d9c2ee6a55142ce2e00cdb3696ec7db8a64fe94d4e3f69b6ef137bd04912996
|
7
|
+
data.tar.gz: 7b9e1f4c67fccb62dfe4de1c87e86d642e5c8744ccaacc7adfe79d3d18ce160388ed677c0e1131a3f65da9bd24e6fea5f6f12da5d296e238dc54b4404c641b39
|
@@ -14,4 +14,14 @@ class Twenty::Project < Sequel::Model
|
|
14
14
|
def path
|
15
15
|
super&.sub(Dir.home, "~")
|
16
16
|
end
|
17
|
+
|
18
|
+
##
|
19
|
+
# @return [Integer]
|
20
|
+
# Returns the number of open tasks a project has.
|
21
|
+
def open_task_count
|
22
|
+
@open_task_count ||= Twenty::Task
|
23
|
+
.where(project_id: id)
|
24
|
+
.where(Sequel.lit("status IN (0,1,2)"))
|
25
|
+
.count
|
26
|
+
end
|
17
27
|
end
|