Skip to content

Commit

Permalink
Merge pull request #160 from bombsquad-community/store-unlock-api8
Browse files Browse the repository at this point in the history
Update store events specials to API 8
  • Loading branch information
rikkolovescats authored Jul 15, 2023
2 parents 33ff367 + 646401f commit b90deb6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
6 changes: 6 additions & 0 deletions plugins/utilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@
}
],
"versions": {
"2.0.0": {
"api_version": 8,
"commit_sha": "c41cc10",
"released_on": "15-07-2023",
"md5sum": "71c3f6386433feebac94ef0b9b6a8bf4"
},
"1.0.0": {
"api_version": 7,
"commit_sha": "63d674cf",
Expand Down
13 changes: 6 additions & 7 deletions plugins/utilities/store_event_specials.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@
For more information, please refer to <http://unlicense.org/>
"""

# ba_meta require api 7
# ba_meta require api 8

from typing import List, Dict, Any

import ba
import ba._store
import ba.internal
import babase
import bauiv1 as bui

original_get_store_layout = ba._store.get_store_layout
original_get_store_layout = bui.app.classic.store.get_store_layout


def add_special_characters(layout:
Expand Down Expand Up @@ -62,6 +61,6 @@ def modified_get_store_layout() -> Dict[str, List[Dict[str, Any]]]:


# ba_meta export plugin
class Main(ba.Plugin):
class Main(babase.Plugin):
def on_app_running(self) -> None:
ba.internal.get_store_layout = modified_get_store_layout
bui.app.classic.store.get_store_layout = modified_get_store_layout

0 comments on commit b90deb6

Please sign in to comment.