Implement indexing into Apache Druid #1

Closed
m wants to merge 263 commits from druid into master
2 changed files with 18 additions and 0 deletions
Showing only changes of commit 404fdb000f - Show all commits

13
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,13 @@
repos:
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
args:
- --line-length=120
- repo: https://gitlab.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
args:
- "--max-line-length=120"

View File

@ -6,6 +6,11 @@ from copy import deepcopy
from random import choice from random import choice
def needToRegister(net): def needToRegister(net):
# Check if the network does not support authentication
networkObj = main.network[net]
if networkObj.auth == "none":
return False
# Check if the IRC network definition has registration disabled
inst = selectInst(net) inst = selectInst(net)
if "register" in inst.keys(): if "register" in inst.keys():
if inst["register"]: if inst["register"]: