refactored some functions, added demo download retry
This commit is contained in:
@@ -156,13 +156,6 @@ func MaxRounds(v int) predicate.Match {
|
||||
})
|
||||
}
|
||||
|
||||
// DemoExpired applies equality check predicate on the "demo_expired" field. It's identical to DemoExpiredEQ.
|
||||
func DemoExpired(v bool) predicate.Match {
|
||||
return predicate.Match(func(s *sql.Selector) {
|
||||
s.Where(sql.EQ(s.C(FieldDemoExpired), v))
|
||||
})
|
||||
}
|
||||
|
||||
// DemoParsed applies equality check predicate on the "demo_parsed" field. It's identical to DemoParsedEQ.
|
||||
func DemoParsed(v bool) predicate.Match {
|
||||
return predicate.Match(func(s *sql.Selector) {
|
||||
@@ -987,20 +980,6 @@ func MaxRoundsLTE(v int) predicate.Match {
|
||||
})
|
||||
}
|
||||
|
||||
// DemoExpiredEQ applies the EQ predicate on the "demo_expired" field.
|
||||
func DemoExpiredEQ(v bool) predicate.Match {
|
||||
return predicate.Match(func(s *sql.Selector) {
|
||||
s.Where(sql.EQ(s.C(FieldDemoExpired), v))
|
||||
})
|
||||
}
|
||||
|
||||
// DemoExpiredNEQ applies the NEQ predicate on the "demo_expired" field.
|
||||
func DemoExpiredNEQ(v bool) predicate.Match {
|
||||
return predicate.Match(func(s *sql.Selector) {
|
||||
s.Where(sql.NEQ(s.C(FieldDemoExpired), v))
|
||||
})
|
||||
}
|
||||
|
||||
// DemoParsedEQ applies the EQ predicate on the "demo_parsed" field.
|
||||
func DemoParsedEQ(v bool) predicate.Match {
|
||||
return predicate.Match(func(s *sql.Selector) {
|
||||
|
Reference in New Issue
Block a user