Ejemplo n.º 1
0
def main(args):
    args = _parse_args(args)
    if args.verbose:
        logging.basicConfig(level=logging.DEBUG)

    # Add Managers
    if args.managers:
        from managers.fill import fill_managers
        fill_managers(verbose=args.verbose)

    # Add Requests
    if args.requests:
        from managers.fill import fill_requests
        fill_requests(verbose=args.verbose)

    if args.workshift and "workshift" in settings.INSTALLED_APPS:
        from workshift.fill import fill_regular_shifts, fill_humor_shifts, \
            fill_social_shifts
        fill_regular_shifts()
        fill_humor_shifts()
        fill_social_shifts()
Ejemplo n.º 2
0
 def save(self):
     from workshift.fill import fill_social_shifts
     return fill_social_shifts(semester=self.semester)
Ejemplo n.º 3
0
 def save(self):
     from workshift.fill import fill_social_shifts
     fill_social_shifts(semester=self.semester)