Compare commits
9 Commits
e2677ec029
...
1b0ba01258
Author | SHA1 | Date | |
---|---|---|---|
1b0ba01258 | |||
6fc5ee3ed3 | |||
099707446d | |||
d6b7fd73df | |||
6bfb0ddbf9 | |||
e1b76fa628 | |||
e6f98def6a | |||
590479eee2 | |||
d25305be4a |
@ -8,15 +8,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
on-push-deploy_sh-edraft:
|
on-push-deploy_sh-edraft:
|
||||||
runs-on: [ dobby.sh-edraft.de, ubuntu-latest ]
|
runs-on: [ dobby.sh-edraft.de, ubuntu-latest ]
|
||||||
container: catthehacker/ubuntu:act-latest
|
container: sh-edraft.de/act-runner:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Python 3.10
|
|
||||||
uses: actions/setup-python@v3
|
|
||||||
with:
|
|
||||||
python-version: "3.10.12"
|
|
||||||
token: ${{ secrets.CI_GITHUB_ACCESS_TOKEN }}
|
|
||||||
- run: python -v
|
|
||||||
|
|
||||||
- name: Setup docker
|
- name: Setup docker
|
||||||
uses: https://github.com/papodaca/install-docker-action@main
|
uses: https://github.com/papodaca/install-docker-action@main
|
||||||
- run: docker -v
|
- run: docker -v
|
||||||
@ -30,7 +23,7 @@ jobs:
|
|||||||
- name: Prepare bot build
|
- name: Prepare bot build
|
||||||
run: |
|
run: |
|
||||||
cd bot
|
cd bot
|
||||||
pip install --extra-index-url https://pip.sh-edraft.de cpl-cli
|
python3.10 -m pip install --extra-index-url https://pip.sh-edraft.de cpl-cli
|
||||||
cpl i
|
cpl i
|
||||||
|
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
|
@ -8,15 +8,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
on-push-deploy_sh-edraft:
|
on-push-deploy_sh-edraft:
|
||||||
runs-on: [ dobby.sh-edraft.de, ubuntu-latest ]
|
runs-on: [ dobby.sh-edraft.de, ubuntu-latest ]
|
||||||
container: catthehacker/ubuntu:act-latest
|
container: sh-edraft.de/act-runner:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Python 3.10
|
|
||||||
uses: actions/setup-python@v3
|
|
||||||
with:
|
|
||||||
python-version: "3.10.12"
|
|
||||||
token: ${{ secrets.CI_GITHUB_ACCESS_TOKEN }}
|
|
||||||
- run: python -v
|
|
||||||
|
|
||||||
- name: Setup docker
|
- name: Setup docker
|
||||||
uses: https://github.com/papodaca/install-docker-action@main
|
uses: https://github.com/papodaca/install-docker-action@main
|
||||||
- run: docker -v
|
- run: docker -v
|
||||||
@ -30,7 +23,7 @@ jobs:
|
|||||||
- name: Prepare bot build
|
- name: Prepare bot build
|
||||||
run: |
|
run: |
|
||||||
cd bot
|
cd bot
|
||||||
pip install --extra-index-url https://pip.sh-edraft.de cpl-cli
|
python3.10 -m pip install --extra-index-url https://pip.sh-edraft.de cpl-cli
|
||||||
cpl i
|
cpl i
|
||||||
|
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
|
@ -8,15 +8,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
on-push-deploy_sh-edraft:
|
on-push-deploy_sh-edraft:
|
||||||
runs-on: [ dobby.sh-edraft.de, ubuntu-latest ]
|
runs-on: [ dobby.sh-edraft.de, ubuntu-latest ]
|
||||||
container: catthehacker/ubuntu:act-latest
|
container: sh-edraft.de/act-runner:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Python 3.10
|
|
||||||
uses: actions/setup-python@v3
|
|
||||||
with:
|
|
||||||
python-version: "3.10.12"
|
|
||||||
token: ${{ secrets.CI_GITHUB_ACCESS_TOKEN }}
|
|
||||||
- run: python -v
|
|
||||||
|
|
||||||
- name: Setup docker
|
- name: Setup docker
|
||||||
uses: https://github.com/papodaca/install-docker-action@main
|
uses: https://github.com/papodaca/install-docker-action@main
|
||||||
- run: docker -v
|
- run: docker -v
|
||||||
@ -30,7 +23,7 @@ jobs:
|
|||||||
- name: Prepare bot build
|
- name: Prepare bot build
|
||||||
run: |
|
run: |
|
||||||
cd bot
|
cd bot
|
||||||
pip install --extra-index-url https://pip.sh-edraft.de cpl-cli
|
python3.10 -m pip install --extra-index-url https://pip.sh-edraft.de cpl-cli
|
||||||
cpl i
|
cpl i
|
||||||
|
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 8063944d871d88a1400e45d3fdac29ee69485eb5
|
Subproject commit 9c0dc595348f9ccd58409cc21171456d9ba85758
|
@ -398,6 +398,9 @@ class DataIntegrityService:
|
|||||||
if user is None:
|
if user is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
for join in self._user_joins.get_user_joined_servers_by_user_id(user.id):
|
||||||
|
self._user_joins.delete_user_joined_server(join)
|
||||||
|
|
||||||
self._user_joins_vc.delete_user_joined_voice_channel_by_user_id(user.id)
|
self._user_joins_vc.delete_user_joined_voice_channel_by_user_id(user.id)
|
||||||
self._users.delete_user(user)
|
self._users.delete_user(user)
|
||||||
self._db_context.save_changes()
|
self._db_context.save_changes()
|
||||||
|
@ -124,6 +124,6 @@ class UserJoinedServer(TableABC):
|
|||||||
return str(
|
return str(
|
||||||
f"""
|
f"""
|
||||||
DELETE FROM `UserJoinedServers`
|
DELETE FROM `UserJoinedServers`
|
||||||
WHERE `Id` = {self._join_id};
|
WHERE `JoinId` = {self._join_id};
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
@ -6,10 +6,10 @@ type ServerStatistic {
|
|||||||
activeUserCount: Int
|
activeUserCount: Int
|
||||||
|
|
||||||
userJoinedVoiceChannelCount: Int
|
userJoinedVoiceChannelCount: Int
|
||||||
userJoinedVoiceChannelOntime: Int
|
userJoinedVoiceChannelOntime: Float
|
||||||
|
|
||||||
userJoinedGameServerCount: Int
|
userJoinedGameServerCount: Int
|
||||||
userJoinedGameServerOntime: Int
|
userJoinedGameServerOntime: Float
|
||||||
|
|
||||||
userWarningCount: Int
|
userWarningCount: Int
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user