Commit 79d555d1 authored by Inkhey's avatar Inkhey

correct dir and name column value

parent 6d272674
......@@ -162,13 +162,13 @@ class sqlGit(object):
# TODO : utiliser git show ?
c = self.conn.cursor()
c.execute("SELECT name,dir FROM file;")
c.execute("SELECT dir,name FROM file;")
for row in c.fetchall():
path = os.path.join(row[0], row[1])
f = os.popen('git log --pretty=format:"%H "' + ' -- ' + path)
dLinkF_C = f.read().splitlines()
for commits in dLinkF_C:
data = (row[0], row[1], commits)
data = (row[1], row[0], commits)
c.execute(
'''INSERT INTO link_file_commits(file,dir,commits)
values (?,?,?);''', data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment