Skip to content

Commit c7ed473

Browse files
committed
Added deprecation warning to update_modified
1 parent a77b96b commit c7ed473

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def update(the_query)
158158
def update_modified(subject, modified=datetime.datetime.now())
159159
```
160160

161-
> Executes a SPARQL query to update the modification date of the given subject URI (string).
161+
> (DEPRECATED) Executes a SPARQL query to update the modification date of the given subject URI (string).
162162
> The default date is now.
163163

164164
<a id="escape_helpers.sparql_escape_string"></a>

helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def update(the_query):
144144

145145

146146
def update_modified(subject, modified=datetime.datetime.now()):
147-
"""Executes a SPARQL query to update the modification date of the given subject URI (string).
147+
"""(DEPRECATED) Executes a SPARQL query to update the modification date of the given subject URI (string).
148148
The default date is now."""
149149
query = " WITH <%s> " % MU_APPLICATION_GRAPH
150150
query += " DELETE {"

0 commit comments

Comments
 (0)