Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
90dc1355
Commit
90dc1355
authored
18 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
remove old code (when we modified unread_message table structure)
parent
b3eba176
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/logger.py
+1
-18
1 addition, 18 deletions
src/common/logger.py
with
1 addition
and
18 deletions
src/common/logger.py
+
1
−
18
View file @
90dc1355
...
...
@@ -238,25 +238,8 @@ class Logger:
self
.
cur
.
execute
(
'
SELECT message_id from unread_messages WHERE jid_id = %d
'
%
jid_id
)
results
=
self
.
cur
.
fetchall
()
# Remove before 0.10
except
:
try
:
self
.
cur
.
executescript
(
'
DROP TABLE unread_messages;
'
)
self
.
con
.
commit
()
except
:
pass
try
:
self
.
cur
.
executescript
(
'''
CREATE TABLE unread_messages(
message_id INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE,
jid_id INTEGER
);
'''
)
self
.
con
.
commit
()
except
:
pass
self
.
con
.
close
()
self
.
jids_already_in
=
[]
self
.
init_vars
()
return
[]
pass
for
message
in
results
:
msg_id
=
message
[
0
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment