Restrictions or scheduling requests can be imported with the teams import template. The following restriction columns are available for import and will automatically create the restriction in the system for you. Each column has a certain format and must be followed to work correctly. We will notify if an error is made with a restriction format and notify the row that has the issue.
Date/Time Restrictions (DateTimeRestrictions)
This column is for teams that have a date/time scheduling request, maybe a team can only play in the morning or on a certain day. The restriction can exclude or include (except for a specific date). The following rules are listed below:
Schedule
If a team can play during a certain date/time then start the restriction off with one of the following operators below.
- after (after {time}, after {time} on {date}, after {time} {date})
- before (before {time}, before {time} on {date}, before {time} {date})
- between (between {starttime} ("&" or "and" or "-") {endtime} on {date})
Don't Schedule
If a team can't play during a certain date/time then start the restriction off with one of the following operators below.
- not after (not after {time}, not after {time} on {date}, not after {time} {date})
- not before (not before {time}, not before {time} on {date}, not before {time} {date})
- not between (not between {starttime} ("&" or "and" or "-") {endtime} on {date})
- not on (not on {date})
Rules
- Multiple Date/Time Restrictions in a row are separated by a comma (see row 7).
- AM or PM is required for times.
- The Between operator can use the following to separate the start and end time: and, &, - (see row 3,8,9)
- Not On operator can only be used with a Date (see row 5,6)
- If the Year is not provided with a Date then the Current Year is used (see row 6).
- If the day of the week (sat,sun,mon,tue,wed,thu,fri) is used for the Date, then the following day of the week from the current import date is used (Importing on Thursday will use that weekend's Saturday for the word sat, see row 2,4,5,7)
Edge Case
If you want a team to play between two times and use the between operator, it stores that retriction inverted, excluding before the start time and after the end time. This works fine unless you have another restriction in conjuction with this that might be an after or before operator. These will be ignored since the between operator excluded everything before and after it. In the future we will store these as an inclusion, but right now we save our date/time restrictions with when a team CAN'T play.
Row | Division | Team Name | DateTimeRestrictions | Description |
1 | 16U Boys | Gym Ratz White | after 4 pm | Can play after 4:00 PM on all days |
2 | 16U Boys | Indiana Elite | before 11:00 am sat | Can play before 11:00 am on the next Saturday |
3 | 16U Boys | Indiana Elite Red | between 2 pm & 5 pm 11/23/2017 | Can play between 2:00 PM and 5:00 PM on November 23, 2017 (Uses ampersand "&") |
4 | 16U Boys | Louisville Magic | not after 5:00 PM on sun | Can't play after 5:00 PM on the next Sunday |
5 | 17U Boys | Gym Ratz Red | not on sat | Can't play on the next Saturday |
6 | 17U Boys | Indiana Elite | not on 11/23 | Can't play on November 23 on current year of import |
7 | 17U Boys | Louisville Magic | before 11am sat, after 4pm sat | Can play before 11:00 AM on next Saturday, Can play after 4:00 PM on next Saturday |
8 | 17U Boys | Indiana Elite Red | not between 11:00 AM and 3:00 PM | Can't play between 11:00 AM and 3:00 PM on all days (Uses the word "and") |
9 | 17U Boys | EG All-Stars | not between 11:00 AM-3:00 PM on 11/23/2017 | Can't play between 11:00 AM and 3:00 PM on November 23, 2017 (Uses a dash "-") |
Matchup Restrictions (MatchupRestrictions)
This column is for teams that can't play against each other in a match-up but can play at the same time. This is more for teams from the same organization but different coaches. When auto creating match-ups this restriction will also be taken into account. Read the Team Restrictions section below for the format of this column.
Team Restrictions (TeamRestrictions)
This column is for teams that don't want to play at the same time, maybe they have the same coach. The full division name is required along with the optional team name if the names are exactly the same in both divisions. It's not necessary to put this restriction in for both teams as it will create a bi-directional restriction but is recommended for human readability. The following rules are listed below.
- Format: (minimum)|TeamName or DivisionName (only if team names are the same)
- Multiple Team Restrictions in a row are separated by a comma (see row 2,3,6).
- If the Team Name is the same in the reference, the Division Name is only needed (see row 4)
- If the Team Name is different in the reference, the Division Name and Team Name are required, separated by a pipe character (|) (see row 1,5)
- Restrictions are not needed on both teams but is recommended.
Row | Division | Team Name | TeamRestrictions | Description |
1 | 16U Boys | Gym Ratz White | 17U Boys|Gym Ratz Red | The teams in both divisions have a different name, so it is required to list the name after the division. |
2 | 16U Boys | Indiana Elite | 17U Boys,16U Boys|Indiana Elite Red | The team name in row 6 is the same so only the Division Name is required but the team name in row 3 is different so the team name is required after the division name. Both are separated by columns. |
3 | 16U Boys | Indiana Elite Red | 17U Boys,16U Boys|Indiana Elite | The team name in row 6 is the same so only the Division Name is required but the team name in row 2 is different so the team name is required after the division name. Both are separated by columns. |
4 | 16U Boys | Louisville Magic | 17U Boys | The team names are the same in both divisions, therefore only a division name is required. |
5 | 17U Boys | Gym Ratz Red | 16U Boys|Gym Ratz White | The teams in both divisions have a different name, so it is required to list the name after the division. |
6 | 17U Boys | Indiana Elite | 16U Boys,16U Boys|Indiana Elite Red | The team name in row 2 is the same so only the Division Name is required but the team name in row 2 is different so the team name is required after the division name. Both are separated by columns. |
7 | 17U Boys | Louisville Magic | It's not necessary to put anything here because row 4 already creates the team restriction between both teams although it's recommended you do. |
Game / Venue Restrictions (GameRestrictions,VenueRestrictions)
This column can set the minimum, maximum or range of games for a team for an entire event or specific date and also at a certain location.
- ({minimum}(-{maximum})) (on {date}) (at {venue}) (on {court,field,rink}))
- ({minimum} or more) (on {date}) (at {venue}) (on {court,field,rink}))
- ({maximum} or less) (on {date}) (at {venue}) (on {court,field,rink}))
Rules
- Multiple Game/Venue Restrictions in a row are separated by a comma (see row 6).
- Minimum formats include 1 or more, 1-, 1-2
- Maximum formats include 1 or less, -1, 1-2
- Date format must have on before it
- Venue name must have at before it
- Court, field or rink can be included after on and requires a venue before it
- If the Year is not provided with a Date then the Current Year is used (see row 6).
- If the day of the week (sat,sun,mon,tue,wed,thu,fri) is used for the Date, then the following day of the week from the current import date is used (Importing on Thursday will use that weekend's Saturday for the word sat, see row 2,4,5,7)
Row | Division | Team Name | GameRestrictions | Description |
1 | 16U Boys | Gym Ratz White | 1 on 3/30/2017 at New Albany High School on Court 1 | This team will play 1 game on 3/30/2017 at New Albany High School on Court 1. |
2 | 16U Boys | Indiana Elite | 3 or less | This team will play 3 or less games for the entire event. |
3 | 16U Boys | Indiana Elite Red | 1-2 at New Albany High School | This team will play 1-2 games at New Albany High School (Any court, field, rink and any date). |
4 | 16U Boys | Louisville Magic | 3 | This team will play exactly 3 games (Any venue, court or date). |
5 | 17U Boys | Gym Ratz Red | At New Albany High School on Court 1 | This team will only play at New Albany High School on Court 1 (Any date, any amount of games). |
6 | 17U Boys | Indiana Elite | on 3/30/2017, on 3/31/2017 | This team will play all games on 3/30/2017 and/or 3/31/2017 (Any venue, any amount of games). |
7 | 17U Boys | Louisville Magic | 2 or more on 3/30/2017 | This team will play 2 or more games on 3/30/2017 (Any location). |
8 | 17U Boys | Indiana Elite Orange | 1- at New Albany High School | This team will play 1 or more games at New Albany High School (Any court, field, rink and any date). |
9 | 15U Boys | Indiana Elite | -2 | This team will play 2 or less games (Any venue and any date). |
Exhibition Restriction (ExhibitionRestriction)
This column is for teams that will have all their games marked as an exhibition, meaning their games won't count against pool standings. This option is good for teams who may only play one day in a shootout and must be last in the pool. This column only requires a boolean value which can be Yes, Y, True, or 1, otherwise leave blank.
Row | Division | Team Name | ExhibitionRestriction |
1 | 16U Boys | Gym Ratz White | Yes |
2 | 16U Boys | Indiana Elite | 1 |
3 | 16U Boys | Indiana Elite Red | Y |
4 | 16U Boys | Indiana Elite White | True |
Comments
0 comments
Please sign in to leave a comment.