22 lines
523 B
Python
22 lines
523 B
Python
from pathlib import Path
|
|
|
|
from models.tg_xpin import TgXpin
|
|
from models.xtella_bing_tg import XtellaBindTg
|
|
from process.tools import get_host_ip
|
|
from models.tg_models import TelegramAccount
|
|
|
|
if __name__ == '__main__':
|
|
for i in XtellaBindTg.select():
|
|
if TgXpin.get_or_none(
|
|
TgXpin.wallet_id == i.id
|
|
):
|
|
continue
|
|
|
|
print(i)
|
|
tgx_info = TgXpin.get_or_none(
|
|
TgXpin.wallet_id.is_null()
|
|
)
|
|
|
|
tgx_info.wallet_id = i.id
|
|
tgx_info.save()
|