Skip to content

Commit e851eed

Browse files
authored
Merge pull request #1616 from lmmx/patch-1
Document the `update` method for project variables
2 parents 49fae96 + 7992911 commit e851eed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/gl_objects/variables.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ Update a variable value::
9393

9494
var.value = 'new_value'
9595
var.save()
96+
# or
97+
project.variables.update("key1", {"value": "new_value"})
9698

9799
Remove a variable::
98100

0 commit comments

Comments
 (0)