Spaces:
Running
Running
Update content/generator.py
Browse files- content/generator.py +6 -10
content/generator.py
CHANGED
|
@@ -185,22 +185,18 @@ def _pick(channel_key: str, content_type: str) -> tuple:
|
|
| 185 |
|
| 186 |
def _footer(channel_key: str, tag_key: str) -> str:
|
| 187 |
cfg = config_manager.channels.get(channel_key, {})
|
| 188 |
-
footer = cfg.get("footer", "β¨ *Study Hard, Score High\!*")
|
| 189 |
hashtag = cfg.get("hashtags", {}).get(tag_key, "")
|
| 190 |
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
"
|
| 195 |
-
"π¬ *Share with friends preparing for exams*\n"
|
| 196 |
-
"π *Enable notifications for live updates*\n"
|
| 197 |
-
"π *Save this for future reference*"
|
| 198 |
)
|
| 199 |
|
| 200 |
if hashtag:
|
| 201 |
-
return f"\n\n{hashtag}\n{
|
| 202 |
else:
|
| 203 |
-
return f"\n\n{
|
| 204 |
|
| 205 |
|
| 206 |
def _exam(channel_key: str) -> str:
|
|
|
|
| 185 |
|
| 186 |
def _footer(channel_key: str, tag_key: str) -> str:
|
| 187 |
cfg = config_manager.channels.get(channel_key, {})
|
|
|
|
| 188 |
hashtag = cfg.get("hashtags", {}).get(tag_key, "")
|
| 189 |
|
| 190 |
+
footer_text = (
|
| 191 |
+
"βββββββββββββββββββββ\n"
|
| 192 |
+
"π React | π Save | π’ Share\n"
|
| 193 |
+
"π @xcrazylearners"
|
|
|
|
|
|
|
|
|
|
| 194 |
)
|
| 195 |
|
| 196 |
if hashtag:
|
| 197 |
+
return f"\n\n{hashtag}\n{footer_text}"
|
| 198 |
else:
|
| 199 |
+
return f"\n\n{footer_text}"
|
| 200 |
|
| 201 |
|
| 202 |
def _exam(channel_key: str) -> str:
|