Correct user namespace from cust_ to custom_

This commit is contained in:
Mart van de Ven
2023-04-20 13:36:14 +08:00
parent 1056ff0d18
commit b545fc5590
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ If you're just getting started, please be familiar with the methods described in
Storing information can be accomplished by creating a new dictionary within the strategy class.
The name of the variable can be chosen at will, but should be prefixed with `cust_` to avoid naming collisions with predefined strategy variables.
The name of the variable can be chosen at will, but should be prefixed with `custom_` to avoid naming collisions with predefined strategy variables.
```python
class AwesomeStrategy(IStrategy):

View File

@@ -43,7 +43,7 @@ class AwesomeStrategy(IStrategy):
if self.config['runmode'].value in ('live', 'dry_run'):
# Assign this to the class by using self.*
# can then be used by populate_* methods
self.cust_remote_data = requests.get('https://some_remote_source.example.com')
self.custom_remote_data = requests.get('https://some_remote_source.example.com')
```