Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 5, 2019. It is now read-only.

Commit d3e7d5b

Browse files
committed
status update
1 parent 38d0dc8 commit d3e7d5b

File tree

5 files changed

+110
-272
lines changed

5 files changed

+110
-272
lines changed

‎2.py

Lines changed: 0 additions & 137 deletions
This file was deleted.

‎3.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎data.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import os
22
import csv
3+
34
file = open('data.txt', 'r')
4-
cs=open('1.csv','w')
5-
a=[]
6-
original_email_ids=[]
5+
cs=open('1.csv','w')
6+
a=[]
7+
original_email_ids=[]
78
with cs:
8-
write=csv.writer(cs)
9-
for line in file:
10-
a=line.strip('|').split('|')
11-
for item in a:
12-
item.strip()
13-
write.writerow(a)
9+
write=csv.writer(cs)
10+
for line in file:
11+
a=line.strip('|').split('|')
12+
for item in a:
13+
item.strip()
14+
write.writerow(a)

‎email_checker.py

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,37 @@
1-
import sys
21
import test
32
import csv
4-
cs=open('1.csv','r')
5-
message=[]
6-
y1=[]
7-
y2=[]
8-
y3=[]
9-
y4=[]
10-
y=[]
11-
y1.append(10*"-"+'FIRST YEARS'+10*"-")
12-
y2.append(10*"-"+'SECOND YEARS'+10*"-")
13-
y3.append(10*"-"+'THIRD YEARS'+10*"-")
14-
y4.append(10*"-"+"FOURTH YEARS"+10*"-")
15-
message=test.main()
3+
4+
cs = open('data/1.csv', 'r')
5+
y1 = []
6+
y2 = []
7+
y3 = []
8+
y4 = []
9+
y = []
10+
y1.append(10 * "-" + 'FIRST YEARS' + 10 * "-")
11+
y2.append(10 * "-" + 'SECOND YEARS' + 10 * "-")
12+
y3.append(10 * "-" + 'THIRD YEARS' + 10 * "-")
13+
y4.append(10 * "-" + "FOURTH YEARS" + 10 * "-")
14+
message = test.main()
15+
16+
print ("Number of status mails %d" %len(message))
17+
1618
with cs:
17-
wcs = csv.reader(cs)
18-
for row in wcs:
19-
if( row[2].strip() not in message):
20-
print(row[2])
21-
if(row[3] == '1'):
22-
y1.append(row[0]+row[1])
23-
elif(row[3] == '2'):
24-
y2.append(row[0]+row[1])
25-
elif(row[3] == '3'):
26-
y3.append(row[0]+row[1])
27-
elif(row[3] == '4'):
28-
y4.append(row[0]+row[1])
29-
y.append(y1)
30-
y.append(y2)
31-
y.append(y3)
32-
y.append(y4)
33-
for item in y:
34-
for string in item:
35-
print(string)
19+
wcs = csv.reader(cs)
20+
for row in wcs:
21+
if row[2].strip() not in message:
22+
print(row[2])
23+
ifrow[3] == '1':
24+
y1.append(row[0]+row[1])
25+
elifrow[3] == '2':
26+
y2.append(row[0]+row[1])
27+
elifrow[3] == '3':
28+
y3.append(row[0]+row[1])
29+
elifrow[3] == '4':
30+
y4.append(row[0]+row[1])
31+
y.append(y1)
32+
y.append(y2)
33+
y.append(y3)
34+
y.append(y4)
35+
for item in y:
36+
for string in item:
37+
print(string)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /