Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for each in StationIds:
- c.execute("SELECT"
- "AVG(SkewA),AVG(SkewB)"
- "FROM (SkewA,SkewB"
- "FROM Results WHERE Station1ID='%s' AND Year<='%s' AND Workday<'%s' ORDER BY Workday DESC LIMIT 14)" %
- (each['Station1ID'],YeaR,each['Workday']))
- Station1Data = c.fetchall()
- for each in StationIds:
- c.execute("SELECT"
- "AVG(SkewC),AVG(SkewD)"
- "FROM (SkewC,SkewD"
- "FROM Results WHERE Station2ID='%s' AND Year<='%s' AND Workday<'%s' ORDER BY Workday DESC LIMIT 14)" %
- (each['Station2ID'],YeaR,each['Workday']))
- Station2Data = c.fetchall()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement