Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pelle
LibreAction
Commits
0231f2b9
Commit
0231f2b9
authored
May 15, 2021
by
Pelle Hjek
Browse files
Extend example.
parent
d9866fb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
libreaction.pl
View file @
0231f2b9
...
...
@@ -45,8 +45,7 @@ action_commitments_count(Action_id, Commitments_count) :-
length
(
Commitments
,
Commitments_count
).
target_reached
(
Action_id
)
:-
action
(
Action_id
,
Details
,
_Description
),
member
(
target
=
Target
,
Details
),
action_attribute_value
(
Action_id
,
target
,
Target
),
action_commitments_count
(
Action_id
,
Commitments_count
),
% Commitments_count >= Target.
% only send notification when the *exact* taget is reached
...
...
@@ -255,7 +254,7 @@ action_handler(post, Request):-
]),
get_time
(
Now
),
% check that action exists
action
(
Id
,
_Details
,
_Decription
),
action
_id
(
_File
,
Id
),
% prevent duplicate signups
(
commitment
(
Details
),
member
(
email
(
Email
),
Details
),
...
...
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