@@ -475,6 +475,12 | |||||
475 | objProfileActive.is_active = 0 No newline at end of file |
|
475 | objProfileActive.is_active = 0 | |
476 | objProfileActive.save() No newline at end of file |
|
476 | objProfileActive.save() | |
477 | No newline at end of file |
|
477 | ||
|
478 | lsPatternsActive = Pattern.objects.filter(is_active=1) | |||
|
No newline at end of file | ||||
|
479 | if len(lsPatternsActive) > 0: | |||
|
No newline at end of file | ||||
|
480 | objPatternActive = Pattern.objects.get(is_active=1) | |||
|
No newline at end of file | ||||
|
481 | objPatternActive.is_active = 0 | |||
|
No newline at end of file | ||||
|
482 | objPatternActive.save() | |||
|
No newline at end of file | ||||
|
483 | No newline at end of file | |||
478 | objProfile.hits += 1 No newline at end of file |
|
484 | objProfile.hits += 1 | |
479 | objProfile.is_active = 1 No newline at end of file |
|
485 | objProfile.is_active = 1 | |
480 | objProfile.save() No newline at end of file |
|
486 | objProfile.save() |
General Comments 0
You need to be logged in to leave comments.
Login now