Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
glaslos committed Dec 24, 2024
1 parent ee28118 commit 91f41f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Code Quality Checks

on: [push]
on: [push, pull_request]

jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run Black
uses: psf/black@stable
with:
options: "--check"
src: "./conpot/*"
1 change: 1 addition & 0 deletions conpot/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def get_databus():
def get_session(*args, **kwargs):
return sessionManager.get_session(*args, **kwargs)


def delete_session(*args, **kwargs):
return sessionManager.delete_session(*args, **kwargs)

Expand Down
2 changes: 1 addition & 1 deletion conpot/core/session_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def delete_session(self, id):
if session.id == id:
del self._sessions[i]
break

def purge_sessions(self):
# there is no native purge/clear mechanism for gevent queues, so...
self.log_queue = Queue()

0 comments on commit 91f41f2

Please sign in to comment.