Supercharging superbooga (#3272)
This commit is contained in:
parent
ad00b8eb26
commit
0845724a89
21 changed files with 12294 additions and 2 deletions
16
extensions/superboogav2/utils.py
Normal file
16
extensions/superboogav2/utils.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
"""
|
||||
This module contains common functions across multiple other modules.
|
||||
"""
|
||||
|
||||
import extensions.superboogav2.parameters as parameters
|
||||
|
||||
# Create the context using the prefix + data_separator + postfix from parameters.
|
||||
def create_context_text(results):
|
||||
context = parameters.get_prefix() + parameters.get_data_separator().join(results) + parameters.get_postfix()
|
||||
|
||||
return context
|
||||
|
||||
|
||||
# Create metadata with the specified source
|
||||
def create_metadata_source(source: str):
|
||||
return {'source': source}
|
Loading…
Add table
Add a link
Reference in a new issue