mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-22 07:08:20 +00:00
🔖 Update to v1.2.12
This commit is contained in:
parent
7bdacf15f5
commit
f90aecb5f3
@ -13,7 +13,7 @@ from pagermaid.scheduler import scheduler
|
|||||||
import pyromod.listen
|
import pyromod.listen
|
||||||
from pyrogram import Client
|
from pyrogram import Client
|
||||||
|
|
||||||
pgm_version = "1.2.11"
|
pgm_version = "1.2.12"
|
||||||
CMD_LIST = {}
|
CMD_LIST = {}
|
||||||
module_dir = __path__[0]
|
module_dir = __path__[0]
|
||||||
working_dir = getcwd()
|
working_dir = getcwd()
|
||||||
|
@ -66,7 +66,9 @@ class Mixpanel:
|
|||||||
'$distinct_id': distinct_id,
|
'$distinct_id': distinct_id,
|
||||||
'$set': properties,
|
'$set': properties,
|
||||||
}
|
}
|
||||||
record = {'$token': self._token, '$time': self._now()} | message
|
record = {'$token': self._token, '$time': self._now()}
|
||||||
|
# sourcery skip: dict-assign-update-to-union
|
||||||
|
record.update(message)
|
||||||
return await self.api_call('people', self.json_dumps(record, cls=self._serializer))
|
return await self.api_call('people', self.json_dumps(record, cls=self._serializer))
|
||||||
|
|
||||||
async def track(self, distinct_id: str, event_name: str, properties: dict):
|
async def track(self, distinct_id: str, event_name: str, properties: dict):
|
||||||
@ -79,7 +81,8 @@ class Mixpanel:
|
|||||||
'$lib_version': '4.10.0',
|
'$lib_version': '4.10.0',
|
||||||
}
|
}
|
||||||
if properties:
|
if properties:
|
||||||
all_properties |= properties
|
# sourcery skip: dict-assign-update-to-union
|
||||||
|
all_properties.update(properties)
|
||||||
event = {
|
event = {
|
||||||
'event': event_name,
|
'event': event_name,
|
||||||
'properties': all_properties,
|
'properties': all_properties,
|
||||||
|
Loading…
Reference in New Issue
Block a user