v2.1.19e-6

master
isido993 7 years ago
parent bf72dadbc2
commit a707f92077

2
.gitignore vendored

@ -370,3 +370,5 @@ __pycache__/
# tools/
doc/
*/yarn.lock

@ -1,43 +0,0 @@
const safeCall = (func) => {
try {
func()
} catch (e) {
console.warn('Analytics error', e)
}
}
const mixpanelAnalytics = {
event: (name, data) => safeCall(() => mixpanel.track(name, data)),
register: (data) => safeCall(() => mixpanel.register(data)),
userSet: (data) => safeCall(() => mixpanel.people.set(data)),
userIncrement: (key) => safeCall(() => mixpanel.people.increment(key, 1)),
alias: (newId) => safeCall(() => mixpanel.alias(newId)),
identify: (id) => safeCall(() => mixpanel.identify(id)),
reset: () => safeCall(() => mixpanel.reset())
}
const dummyAnalytics = {
event: (name, data) => {},
register: (data) => { },
userSet: (data) => { },
userIncrement: (key) => { },
alias: (newId) => { },
identify: (id) => { },
reset: () => { }
}
let analytics = dummyAnalytics
export default (token = null) => {
if (token && token != '') {
mixpanel.init(token)
analytics = mixpanelAnalytics
}
return analytics
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -17,7 +17,6 @@ RUN apt-get update && apt-get install -y \
tesseract-ocr-spa \
tesseract-ocr-nld \
tesseract-ocr-pol \
tesseract-ocr-chi-sim \
default-jre \
default-jdk \
readpst

@ -124,7 +124,7 @@ def ProcessFile(message):
return False
if not (apiResp.Ok or apiResp.NotFound):
logger.LogMessage('error', 'error unhiding file, unexpected response code {0} {1} {2}'.format(fileMeta.full_name, apiResp.code, apiResp.message))
logger.LogMessage('error', 'error unhiding file, unexpected response code {0} {1} {2}'.format(meta['full_name'], apiResp.code, apiResp.message))
return False
fileMeta = AmbarFileMeta.Init(meta)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -140,4 +140,4 @@ services:
Loading…
Cancel
Save